package com.qing.demo.netty.util;

import com.qing.demo.netty.domain.ServerInfo;
import com.qing.demo.netty.server.NettyServer;
import io.netty.channel.Channel;

import java.awt.image.ImageProducer;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

/**
 * @author caozhipeng
 * @date 2025/8/7
 */
public class CacheUtil {
//    缓存channel
    public static Map<String, Channel> cacheChannel= Collections.synchronizedMap(new HashMap<String,Channel>());

//    缓存服务信息

    public static Map<Integer, ServerInfo> serverInfoMap=Collections.synchronizedMap(new HashMap<Integer, ServerInfo>());


//    缓存服务端

    public static Map<Integer, NettyServer>  serverMap=Collections.synchronizedMap(new HashMap<Integer, NettyServer>());



}
